PowerTCP Mail for .NET
Invoke(String,Byte[]) Method
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > Imap Class > Invoke Method : Invoke(String,Byte[]) Method




command
The command to issue to the server.
data
The data to send after the server responds to the command.
Sends the specified user command.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Invoke( _
   ByVal command As String, _
   ByVal data() As Byte _
) As ImapResponse()
Visual Basic (Usage)Copy Code
Dim instance As Imap
Dim command As String
Dim data() As Byte
Dim value() As ImapResponse
 
value = instance.Invoke(command, data)
C# 
public ImapResponse[] Invoke( 
   string command,
   byte[] data
)
Managed Extensions for C++ 
public: ImapResponse*[]* Invoke( 
   string* command,
   byte[]* data
) 
C++/CLI 
public:
array<ImapResponse^>^ Invoke( 
   String^ command,
   array<byte>^ data
) 

Parameters

command
The command to issue to the server.
data
The data to send after the server responds to the command.

Return Value

An ImapResponse object representing the response from the server.

Exceptions

ExceptionDescription
Dart.PowerTCP.Mail.ProtocolExceptionBad IMAP protocol response received from server.
System.Net.Sockets.SocketExceptionThe requested address is not valid in its context.

Remarks

The Imap.Invoke method sends out the specified command. The contents of the data are sent as a literal following any continuation responses from the IMAP server. This follows the APPEND command model, where the APPEND command is issued, the server issues a continuation response, and the actual message data is then sent

The Imap.Invoke method is useful for enabling communication with servers that recognize proprietary commands not included in the Imap component model.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.